import http from './http';

// 获取角色列表
export const getRoleList = (pageNo, pageSize, roleCode, roleName) => {
    return http.requestGet('/admin/role?pageNo=' + pageNo + '&pageSize=' + pageSize + '&roleCode=' + roleCode + '&roleName=' + roleName)
}
// 添加角色
export const addRole = (role) => {
  return http.requestPost('/admin/role/add',role)
}
//删除角色 
export const delRoleById =(roleId) =>{
    return http.requestDelete("/admin/role/delete/"+roleId)
}